home *** CD-ROM | disk | FTP | other *** search
/ Especial Multimedia / Especial Multimedia.iso / Multimed / Prg / WAVPLUS.ZIP / DEMOMAIN.WD_ / DEMOMAIN.WD
Text File  |  1997-09-14  |  8KB  |  268 lines

  1. VERSION 2.00
  2. Begin Form DemoMain 
  3.    BackColor       =   &H00C0C0C0&
  4.    BorderStyle     =   3  'Fixed Double
  5.    Caption         =   "WavPlus Demo"
  6.    ClientHeight    =   4395
  7.    ClientLeft      =   810
  8.    ClientTop       =   1980
  9.    ClientWidth     =   8280
  10.    ClipControls    =   0   'False
  11.    FillStyle       =   0  'Solid
  12.    FontBold        =   -1  'True
  13.    FontItalic      =   0   'False
  14.    FontName        =   "Mercurius Script MT Bold"
  15.    FontSize        =   8.25
  16.    FontStrikethru  =   0   'False
  17.    FontUnderline   =   0   'False
  18.    ForeColor       =   &H00000000&
  19.    Height          =   5085
  20.    Icon            =   DEMOMAIN.FRX:0000
  21.    KeyPreview      =   -1  'True
  22.    Left            =   750
  23.    LinkTopic       =   "Form1"
  24.    MaxButton       =   0   'False
  25.    ScaleHeight     =   4395
  26.    ScaleWidth      =   8280
  27.    Top             =   1350
  28.    Width           =   8400
  29.    Begin Label Label1 
  30.       Alignment       =   2  'Center
  31.       BackColor       =   &H00C0C0C0&
  32.       Caption         =   "Label1"
  33.       Height          =   2055
  34.       Left            =   1680
  35.       TabIndex        =   0
  36.       Top             =   600
  37.       Width           =   4935
  38.    End
  39.    Begin Menu mnuInfo 
  40.       Caption         =   "&Demos"
  41.       Begin Menu mnuDemoCapabilities 
  42.          Caption         =   "Wav &Capabilities"
  43.       End
  44.       Begin Menu mnuDemoPlayer 
  45.          Caption         =   "&Wav Player"
  46.       End
  47.       Begin Menu mnuDemoPlayer2 
  48.          Caption         =   "Wav Player &2"
  49.       End
  50.       Begin Menu mnuDemoSegment 
  51.          Caption         =   "&Segment Demo"
  52.       End
  53.       Begin Menu mnuDemoMidi 
  54.          Caption         =   "&Midi Player"
  55.       End
  56.       Begin Menu mnuDemoCDPlayer 
  57.          Caption         =   "&CD Player"
  58.       End
  59.       Begin Menu mnuInfoSep1 
  60.          Caption         =   "-"
  61.       End
  62.       Begin Menu mnuExit 
  63.          Caption         =   "E&xit"
  64.       End
  65.    End
  66.    Begin Menu mnuHelp 
  67.       Caption         =   "&Help"
  68.       Begin Menu mnuHelpContents 
  69.          Caption         =   "DLL Help &Contents..."
  70.       End
  71.       Begin Menu mnuHelpSearch 
  72.          Caption         =   "DLL Help &Search..."
  73.       End
  74.       Begin Menu mnuHelpSep01 
  75.          Caption         =   "-"
  76.       End
  77.       Begin Menu mnuHelpAbout 
  78.          Caption         =   "&About..."
  79.       End
  80.       Begin Menu mnuHelpSep02 
  81.          Caption         =   "-"
  82.       End
  83.       Begin Menu mnuHelpCatalog 
  84.          Caption         =   "Catalog of &Products..."
  85.       End
  86.       Begin Menu mnuHelpRegistration 
  87.          Caption         =   "Online &Registration..."
  88.       End
  89.       Begin Menu mnuHelpOrder 
  90.          Caption         =   "&Order Form..."
  91.       End
  92.       Begin Menu mnuHelpEval 
  93.          Caption         =   "&Evaluation Form..."
  94.       End
  95.       Begin Menu mnuHelpSharewar 
  96.          Caption         =   "Shareware &Information"
  97.       End
  98.    End
  99. End
  100.  
  101. Sub Form_KeyPress (KeyAscii As Integer)
  102.     If KeyAscii = 27 Then
  103.         KeyAscii = 0
  104.         Unload Me
  105.         End If
  106. End Sub
  107.  
  108. Sub Form_Load ()
  109.     X% = GetWavPlusVersion()
  110.     FormCenterScreen Me
  111.  
  112.     initialize
  113.     mnuHelp.Caption = Chr$(8) + "&Help"     'right justifies menu item
  114.     
  115.     msg$ = nl + "This small application demonstrates some" + nl
  116.     msg$ = msg$ + "of the functions of WavPlus2.DLL and a few" + nl
  117.     msg$ = msg$ + "VB tricks too.  Print and study the program" + nl
  118.     msg$ = msg$ + "to fully understand how it all works" + nl
  119.     msg$ = msg$ + "together.  Also, read the online Help file" + nl
  120.     msg$ = msg$ + "WavPlus2.HLP to learn about the functions in" + nl
  121.     msg$ = msg$ + " this version of WavPlus ... and about how to" + nl
  122.     msg$ = msg$ + " register this shareware utility."
  123.     Label1.Caption = msg$
  124. End Sub
  125.  
  126. Sub Form_Paint ()
  127.     DoForm3D Me, "raised", 2, 0
  128.     DoForm3D Me, "sunken", 2, 2
  129.     DoControl3D Label1, "raised", 4
  130. End Sub
  131.  
  132. Sub mnuDemoCapabilities_Click ()
  133.     Screen.MousePointer = 11
  134.     Wdevice.Show 1
  135. End Sub
  136.  
  137. Sub mnuDemoCDPlayer_Click ()
  138.     If DisplayedCDplayer = True Then
  139.         CDplayer.WindowState = 0
  140.         Exit Sub
  141.         End If
  142.     Screen.MousePointer = 11
  143.     CDplayer.Show
  144. End Sub
  145.  
  146. Sub mnuDemoMidi_Click ()
  147.     Screen.MousePointer = 11
  148.     MidiPlay.Show 1
  149. End Sub
  150.  
  151. Sub mnuDemoPlayer_Click ()
  152.     Screen.MousePointer = 11
  153.     WavPlay.Show 1
  154. End Sub
  155.  
  156. Sub mnuDemoPlayer2_Click ()
  157.     Screen.MousePointer = 11
  158.     WavPlay2.Show 1
  159. End Sub
  160.  
  161. Sub mnuDemoSegment_Click ()
  162.     Screen.MousePointer = 11
  163.     SegDemo.Show 1
  164. End Sub
  165.  
  166. Sub mnuExit_Click ()
  167.     End
  168. End Sub
  169.  
  170. Sub mnuHelpAbout_Click ()
  171.     Screen.MousePointer = 11
  172.     About.Show 1
  173. End Sub
  174.  
  175. Sub mnuHelpCatalog_Click ()
  176.         On Error Resume Next
  177.         WinPath$ = GetWinDir()
  178.         WinPath$ = BackSlashAdd(WinPath$) + "WRITE.EXE"
  179.         DocPath$ = app.Path
  180.         If InStr(DocPath$, "\VB\DPTOOLS") Then
  181.             DocPath$ = Left$(DocPath$, 2) + "\VB\DPTOOLS"
  182.             End If
  183.         DocPath$ = BackSlashAdd(DocPath$) + "DPCT0395.WRI"
  184.         FullPath$ = WinPath$ + " " + DocPath$
  185.         Screen.MousePointer = 11
  186.         X = Shell(FullPath$, 3)
  187.         Screen.MousePointer = 0
  188. End Sub
  189.  
  190. Sub mnuHelpContents_Click ()
  191.     On Error Resume Next
  192.     MyHelpFile$ = app.Path
  193.     MyHelpFile$ = BackSlashAdd(MyHelpFile$) + "WAVPLUS2.HLP"
  194.     Screen.MousePointer = 11
  195.     ret% = WinHelp(Me.hWnd, MyHelpFile$, HELP_CONTENTS, 0&)
  196.     Screen.MousePointer = 0
  197. End Sub
  198.  
  199. Sub mnuHelpEval_Click ()
  200.         On Error Resume Next
  201.         WinPath$ = GetWinDir()
  202.         WinPath$ = BackSlashAdd(WinPath$) + "WRITE.EXE"
  203.         DocPath$ = app.Path
  204.         If InStr(DocPath$, "\VB\DPTOOLS") Then
  205.             DocPath$ = Left$(DocPath$, 2) + "\VB\DPTOOLS"
  206.             End If
  207.         DocPath$ = BackSlashAdd(DocPath$) + "EVALFRM.WRI"
  208.         FullPath$ = WinPath$ + " " + DocPath$
  209.         Screen.MousePointer = 11
  210.         X = Shell(FullPath$, 3)
  211.         Screen.MousePointer = 0
  212. End Sub
  213.  
  214. Sub mnuHelpOrder_Click ()
  215.         On Error Resume Next
  216.         WinPath$ = GetWinDir()
  217.         WinPath$ = BackSlashAdd(WinPath$) + "WRITE.EXE"
  218.         DocPath$ = app.Path
  219.         If InStr(DocPath$, "\VB\DPTOOLS") Then
  220.             DocPath$ = Left$(DocPath$, 2) + "\VB\DPTOOLS"
  221.             End If
  222.         DocPath$ = BackSlashAdd(DocPath$) + "ORDERFRM.WRI"
  223.         FullPath$ = WinPath$ + " " + DocPath$
  224.         Screen.MousePointer = 11
  225.         X = Shell(FullPath$, 3)
  226.         Screen.MousePointer = 0
  227. End Sub
  228.  
  229. Sub mnuHelpRegistration_Click ()
  230.         On Error Resume Next
  231.         WinPath$ = GetWinDir()
  232.         WinPath$ = BackSlashAdd(WinPath$) + "WRITE.EXE"
  233.         DocPath$ = app.Path
  234.         If InStr(DocPath$, "\VB\DPTOOLS") Then
  235.             DocPath$ = Left$(DocPath$, 2) + "\VB\DPTOOLS"
  236.             End If
  237.         DocPath$ = BackSlashAdd(DocPath$) + "OnlineRg.WRI"
  238.         FullPath$ = WinPath$ + " " + DocPath$
  239.         Screen.MousePointer = 11
  240.         X = Shell(FullPath$, 3)
  241.         Screen.MousePointer = 0
  242. End Sub
  243.  
  244. Sub mnuHelpSearch_Click ()
  245.     On Error Resume Next
  246.     MyHelpFile$ = app.Path
  247.     MyHelpFile$ = BackSlashAdd(MyHelpFile$) + "WAVPLUS2.HLP"
  248.     Screen.MousePointer = 11
  249.     ret% = WinHelp(Me.hWnd, MyHelpFile$, HELP_PARTIALKEY, "")
  250.     Screen.MousePointer = 0
  251. End Sub
  252.  
  253. Sub mnuHelpSharewar_Click ()
  254.         On Error Resume Next
  255.         WinPath$ = GetWinDir()
  256.         WinPath$ = BackSlashAdd(WinPath$) + "WRITE.EXE"
  257.         DocPath$ = app.Path
  258.         If InStr(DocPath$, "\VB\DPTOOLS") Then
  259.             DocPath$ = Left$(DocPath$, 2) + "\VB\DPTOOLS"
  260.             End If
  261.         DocPath$ = BackSlashAdd(DocPath$) + "SHARWARE.WRI"
  262.         FullPath$ = WinPath$ + " " + DocPath$
  263.         Screen.MousePointer = 11
  264.         X = Shell(FullPath$, 3)
  265.         Screen.MousePointer = 0
  266. End Sub
  267.  
  268.